package ru.tennisworld.match.entities.base;

import jakarta.persistence.Column;
import jakarta.persistence.MappedSuperclass;
import lombok.Data;
import lombok.EqualsAndHashCode;

@Data
@MappedSuperclass
@EqualsAndHashCode(callSuper = false, onlyExplicitlyIncluded = true)
public abstract class BaseReferenceEntity extends BaseEntity {

    @Column(name = "NAME")
    private String name;

    @Column(name = "CODE")
    @EqualsAndHashCode.Include
    private String code;
}
